package org.gd.hellojaxb.privat24.registration;

import javax.xml.bind.annotation.adapters.XmlAdapter;

public class NullStringXmlAdapter extends XmlAdapter<String, String> {
    @Override
    public String unmarshal(String v) throws Exception {
        if(v == null) {
            return "";
        }
        return (v);
    }

    @Override
    public String marshal(String v) throws Exception {
        if(v == null) {
            return "";
        }
        return (v);
    }
}
